const express = require('express');
const router = express.Router();
const handler = require('../route-handlers/main.js');
const schema = require('../schema/main.js');
const authMiddleware = require('../utils/auth.js');

router.post('/login', schema.loginSchema, handler.login);
router.get('/getUserInfo', authMiddleware, handler.getUserInfo);

module.exports = router;
